package com.rybbaby.tss.front.tssClasses.entity;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @description 班级表
 * 
 * @author 雷春琼
 * 
 * @createDate 2017-08-09 下午11:50:14
 */
@Entity
@Table(name = "view_tss_class_roster")
@DynamicUpdate(true)
@DynamicInsert(true)
public class ViewTssClassRoster implements Serializable {


	private static final long serialVersionUID = 8548032040830791270L;
	/** 主键 **/
	private String id;
	/** 班级类型 **/
	private Integer classType;
	/** 会员名称 **/
	private String name;
	/** 会员昵称 **/
	private String nickName;
	/** 会员性别 **/
	private Integer sex;
	/** 会员生日 **/
	private Date birthdayDate;
	/** 会员手机号 **/
	private Integer  contactPhone;
	/** 教室id **/
	private String classId;
	/** 授课老师 **/
	private String realName;
	/** 班级名称 **/
	private String className;
	/** 已激活课时包可用课时总数 **/
	private Integer countUsableTotalClassHour;
	/** 已激活课时包剩余课时总数 **/
	private Integer countSurplusClassHour;
	/** 已激活课时包可补课课时 **/
	private Integer countRemediationClassHour;
	/** 本班上次次数 **/
	private Integer countNoAttendClass;

	/** 本班选课节数 **/
	private Integer countAttendClass;

	/**
	 * 报班班级
	 */
	private String classTotalName;

	/**
	 * 方法: 取得主键
	 *
	 * @return java.lang.String 主键
	 */
	@Id
	@GeneratedValue(generator = "view_tss_class_rosterIDGenerator" , strategy = GenerationType.AUTO)
	@GenericGenerator(name = "view_tss_class_rosterIDGenerator" , strategy = "uuid")
	@Column(name = "id", nullable= false, length = 32)
	public String getId() {
		return this.id;
	}
	
	/**
	 * 方法: 设置主键
	 *
	 * @param id 主键
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * 获取会员名称
	 * @return
	 */
	@Column(name = "name", nullable= true, length = 50)
	public String getName() {
		return name;
	}

	/**
	 * 设置会员名称
	 * @param name
	 */
	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "classType", nullable= true, length = 11)
	public Integer getClassType() {
		return classType;
	}

	public void setClassType(Integer classType) {
		this.classType = classType;
	}
	@Column(name = "nickName", nullable= true, length = 32)
	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	@Column(name = "sex", nullable= true, length = 11)
	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}
	@Column(name = "birthdayDate", nullable= true, length = 11)
	public Date getBirthdayDate() {
		return birthdayDate;
	}

	public void setBirthdayDate(Date birthdayDate) {
		this.birthdayDate = birthdayDate;
	}
	@Column(name = "contactPhone", nullable= true, length = 11)
	public Integer getContactPhone() {
		return contactPhone;
	}

	public void setContactPhone(Integer contactPhone) {
		this.contactPhone = contactPhone;
	}
	@Column(name = "classId", nullable= true, length = 32)
	public String getClassId() {
		return classId;
	}

	public void setClassId(String classId) {
		this.classId = classId;
	}
	@Column(name = "realName", nullable= true, length = 32)
	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}
	@Column(name = "className", nullable= true, length = 32)
	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}
	@Column(name = "countUsableTotalClassHour", nullable= true, length = 11)
	public Integer getCountUsableTotalClassHour() {
		return countUsableTotalClassHour;
	}

	public void setCountUsableTotalClassHour(Integer countUsableTotalClassHour) {
		this.countUsableTotalClassHour = countUsableTotalClassHour;
	}
	@Column(name = "countSurplusClassHour", nullable= true, length = 11)
	public Integer getCountSurplusClassHour() {
		return countSurplusClassHour;
	}

	public void setCountSurplusClassHour(Integer countSurplusClassHour) {
		this.countSurplusClassHour = countSurplusClassHour;
	}
	@Column(name = "countRemediationClassHour", nullable= true, length = 11)
	public Integer getCountRemediationClassHour() {
		return countRemediationClassHour;
	}

	public void setCountRemediationClassHour(Integer countRemediationClassHour) {
		this.countRemediationClassHour = countRemediationClassHour;
	}
	@Column(name = "countNoAttendClass", nullable= true, length = 11)
	public Integer getCountNoAttendClass() {
		return countNoAttendClass;
	}

	public void setCountNoAttendClass(Integer countNoAttendClass) {
		this.countNoAttendClass = countNoAttendClass;
	}
	@Column(name = "countAttendClass", nullable= true, length = 11)
	public Integer getCountAttendClass() {
		return countAttendClass;
	}

	public void setCountAttendClass(Integer countAttendClass) {
		this.countAttendClass = countAttendClass;
	}
	@Column(name = "classTotalName", nullable= true, length = 32)
	public String getClassTotalName() {
		return classTotalName;
	}

	public void setClassTotalName(String classTotalName) {
		this.classTotalName = classTotalName;
	}


}